package com.chen.palmar.common.widget.dialog;

import android.view.View;

import com.chen.palmar.R;

import me.shaohui.bottomdialog.BaseBottomDialog;


/**
 * Created by Chen on 2017/6/9.
 * 功能描述：
 */

public class PayDialog extends BaseBottomDialog implements View.OnClickListener {
    View.OnClickListener listener;

    public PayDialog() {
    }

    @Override
    public int getLayoutRes() {
        return R.layout.dialog_pay;
    }

    @Override
    public void bindView(View v) {
        v.findViewById(R.id.ly_pay_wechat).setOnClickListener(this);
        v.findViewById(R.id.ly_pay_zfb).setOnClickListener(this);
    }

    @Override
    public float getDimAmount() {
        return 0.5f;
    }

    @Override
    public void onResume() {
        super.onResume();
    }

    public void setListener(View.OnClickListener listener) {
        this.listener = listener;
    }

    @Override
    public void onClick(View v) {
        if (listener != null) {
            listener.onClick(v);
        }
    }
}
